<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
   <title>开设课程</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
		<script type="text/javascript" src="__JS__/jshelper.js"></script> 
		<script type="text/JavaScript">
			function classedit(id){
				window.location.href="__URL__/classedit/id/"+id;
			}
			function classfile(id,number){
				window.location.href="__URL__/classfile/id/"+id+"/number/"+number;
			}
			function classdelete(id,number){
				if (confirm("你确定要删除吗")==true) {
					//posthelper([["id",id],],'__URL__/classdelete');
					postwith('__URL__/classdelete',{id:id,number:number});
				}
			}
			</script>
</head>
<body>
<!-- layout::Auth:header::0 -->
	 <div class="container-fluid">
      <div class="row-fluid">
		<!-- layout::Auth:leftmenu::0 -->
        	<div class="span8">
          		<div class="hero-unit">
          			<h1>教学班管理</h1>
                    <p style="font-size:12px">当前位置：
                    <a href='__APP__/index/index'  class="nowpositionhref">主页</a>>
                    <a href='__URL__/index'  class="nowpositionhref">后台管理</a>>
                    <a href=""  class="nowpositionhref">教学班管理</a>
                    </p>
                 </div>
                 <table  class="table table-striped table-bordered table-condensed">
                 	<thead style="background-color:#09F">
                    	<tr>
                        	<th>
                            	添加教学班
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                    	<tr>
                        	<td>
                            	 <a href='__URL__/classadd' class="btn btn-success">开设教学班</a>
                            </td>
                        </tr>
                    </tbody>
                 </table>
                
                 <table class="table table-striped table-bordered table-condensed">
                 	<thead  style="background-color:#09F">
                    	<tr>
                        	<th>教学班序号</th>
                            <th>课程名称</th>
                            <th>授课教师</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    
                    <tbody>
                    	<load href"__PUBLIC__/js/list_show.js">
                    	<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr>
                        	<td><?php echo ($vo["id"]); ?></td>
                            <td><?php echo ($vo["cname"]); ?></td>
                            <td><?php echo ($vo["nname"]); ?></td>
                            <td>
                            	<a href="#" onClick="classedit('<?php echo ($vo["id"]); ?>')" class="btn btn-info" >编辑</a>
                                <a href="#" onClick="classdelete('<?php echo ($vo["id"]); ?>','<?php echo ($vo["number"]); ?>')" class="btn btn-danger" >删除</a>
                                <a href="#" onClick="classfile('<?php echo ($vo["id"]); ?>','<?php echo ($vo["number"]); ?>')"  class="btn btn-primary" >管理</a>
                            </td>
                        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                    </tbody>
                 </table>
                <p class="navbar-text pull-right"><?php echo ($page); ?></p>     
			</div>
           </div>
          </div>
          <script src="__JS__/placeholderIEshow.js"></script>
</body>
</html>